File Information

stat(), fstat(), lstat()

#include types.h>

#include stat.h>

struct stat u_short st_mode; ino_t st_ino; dev_t st_dev; short st_rdev; short st_nlink; uid_t st_uid;user id gid_t st_gid;group id off_t st_size;file size off_t st_blksize;bytes per fs block off_t st_blocks;no. of blocks time_t st_mtime;modification time time_t st_atime;access time time_t st_ctime;creation time short st_attr;

DefineValueMeaning


S_IFMT0170000file type mask S_IFBLK0060000block special device S_IFCHR0020000character special device S_IFDIR0040000directory S_IFREG0100000regular file S_IFIFO0120000named pipe (MiNT) S_IFLNK0160000symbolic link S_ISUID0004000s-bit owner S_ISGID0002000s-bit group S_ISVTX0001000sticky bit S_IREAD0000400readable by owner S_IWRITE0000200writable by owner S_IEXEC0000100executable by owner


utime()

#include types.h>

struct utimbuf time_t axtime;access time time_t modtime;modification time